﻿using AutoMapper;
using PlusAssistance.Infraestructure.Translation.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlusAssistance.Infraestructure.Translation.Concrete
{
    public class Translator:ITranslator
    {
        public Translator()
        {

        }
        public TTarget Translate<TSource, TTarget>(TSource source)
            where TTarget : class
            where TSource : class
        {
            return Mapper.Map<TSource, TTarget>(source);
        }
    }
}
